import time
import random

from classes import *
from utils import *
from visual_system import *

### Game parameters

gs = GameSettings
gs.USE_GRAPHICS = True # set to False at testing time

gs.video_mode_flags = pygame.DOUBLEBUF|pygame.HWSURFACE#|pygame.FULLSCREEN#|pygame.NOFRAME
gs.screen_size = (800, 700)
gs.cards_panel_max_width = 530
gs.controls_panel_max_width = 200

gs.num_moves_per_turn = 2
gs.characters_per_player = 5
gs.initial_drawing_limit = 5
gs.num_players = 2
gs.players = {}
gs.print_help = False
gs.game_over = False

deck = Deck.global_deck
gs.deck = deck

gs.selected_card = None

gs.active_player = 0 # player that will take the next move
gs.player = 0 # Player that this script assumes you are
#(the other players will connect through the net).
gs.visual_system = None
gs.net = GameSettings
gs.net.port = 6317
###

#if __name__ == "__main__":

gs.visual_system = VisualSystem(gs)
gs.visual_system.run()

